package com.bocai.dahuatech.ui.activity;

import android.view.View;
import android.widget.ImageView;

import com.bm.library.PhotoView;
import com.bocai.dahuatech.R;
import com.bocai.dahuatech.base.BaseActivity;
import com.bumptech.glide.Glide;

import butterknife.Bind;
import butterknife.ButterKnife;

public class ProductSizepicDetailActivity extends BaseActivity {
    @Bind(R.id.iv_productSizepic)
    PhotoView ivPic;
    @Bind(R.id.iv_back)
    ImageView ivBack;
    String picurl;
    @Override
    protected int contentView() {
        return R.layout.activity_product_sizepic_detail;
    }

    @Override
    protected void initView() {
        ButterKnife.bind(this);

        picurl=getIntent().getStringExtra("picurl");
        Glide.with(this).load(picurl).into(ivPic);
        ivPic.enable();
        ivBack.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
        ivPic.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
    }
}
